﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace iver.Controllers
{
    public class VideoController : ApiController
    {
        //[HttpPost]
        //public ResResult test()
        //{
        //    //Entity.AuthInfo authInfo;
        //    //if (!ReqBase.isAuth(out authInfo))
        //    //{
        //    //    return new ResResult
        //    //    {
        //    //        success = false,
        //    //        rescode = ResCode.FailAuth,
        //    //    };
        //    //}
        //    string ab = System.Web.HttpContext.Current.Server.MapPath("~");
        //    string rootpath = System.Web.HttpContext.Current.Server.MapPath("/up/infoFile");
        //    string[] strs = System.IO.Directory.GetFiles(rootpath, "*.mp4", System.IO.SearchOption.AllDirectories);
        //    List<List<string>> list = new List<List<string>>();
        //    for (int i = 0; i < strs.Length; i++)
        //    {
        //        list.Add(Help.GetFileDetailInfo(strs[i]));
        //    }
        //    return new ResResult
        //    {
        //        success = true,
        //        result = new
        //        {
        //            basePath = rootpath.Replace(System.Web.HttpContext.Current.Server.MapPath("~"), "/").Replace("\\", "/"),
        //            list,
        //        }
        //    };

        //}
    }
}